

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = CanController
TEMPLATE = lib
DESTDIR += ../bin
MOC_DIR += ./tmp
OBJECTS_DIR += ./tmp
UI_DIR += ./tmp
RCC_DIR += ./tmp
INCLUDEPATH += ./tmp ./src ./include ./3rdInclude
CONFIG += console qt warn_on debug_and_release
QT -= gui

HEADERS += 	include/PubStruct.h \
			include/CanController.h \
			src/RecvThread.h \
			src/SendData.h

SOURCES += 	src/CanController.cpp \
			src/RecvThread.cpp \
			src/SendData.cpp


win32 {
	LIBS += 3rdLib/ControlCAN.lib
    build_pass:CONFIG(release, debug|release) {
    }

    build_pass:CONFIG(debug, debug|release) {
		TARGET = $$join(TARGET,,,d)
    }
}
